/** 当你的路由表太长的时候，你可以把路由表的内容分成几个小的模块**/
import AdminNav from '@/components/AdminNav';

//用户
import UserList from '@/views/admin/UserList';
import AddUser from '@/views/admin/user/AddUser';

//专家
import AdminExpert from '@/views/admin/AdminExpert';
import UpdateExpert from '@/views/admin/expert/UpdateExpert';
//单位
import AdminUnit from '@/views/admin/AdminUnit';
import UpdateUnit from '@/views/admin/unit/UpdateUnit';
//项目
import AdminProjectCategory from '@/views/admin/AdminProjectCategory';
import UpdateProject from '@/views/admin/project/UpdateProject';
import AddProject from '@/views/admin/project/AddProject';


const AdminRouter = {
    path: 'admin',
    name: 'AdminNav',
    component: AdminNav,
    children: [
        //登录用户管理
        {
            path: 'userList',
            name: 'userList',
            component: UserList,
        },
        //添加用户
        {
            path: 'addUser',
            name: 'addUser',
            component: AddUser
        },
        //专家信息管理
        {
            path: 'showExperts',
            name: 'showExperts',
            component: AdminExpert
        },
        //修改专家信息
        {
            path: 'UpdateExpert',
            name: 'UpdateExpert',
            component: UpdateExpert
        },
        //单位信息管理
        {
            path: 'showUnits',
            name: 'showUnits',
            component: AdminUnit

        },
        //修改单位信息
        {
            path: 'UpdateUnit',
            name: 'UpdateUnit',
            component: UpdateUnit

        },
        //项目管理
        {
            path: 'showProjectCategorys',
            name: 'showProjectCategorys',
            component: AdminProjectCategory

        },
        //修改项目
        {
            path: 'UpdateProject',
            name: 'UpdateProject',
            component: UpdateProject
        
        },
        //添加项目
        {
            path: 'addProject',
            name: 'appProject',
            component: AddProject

        }
     
    ]
}

export default AdminRouter
